<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
        </div>
    </div>

    <form class="div-find form-inline">
        <div class="form-group">
            <label class="form-label">学年：</label>
            <select class="form-control" ng-options="aca.prop_pk as aca.prop_value for aca in academics" ng-model="form.academic" ng-change="findClass()">
                <option value="">==请选择==</option>
            </select>
            <label class="form-label">学期：</label>
            <select class="form-control" ng-options="sem.prop_pk as sem.prop_value for sem in semesters" ng-model="form.semester" ng-change="findClass()">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group" ng-if="unitList.length > '1'">
            <label class="form-label">校区：</label>
            <select class="form-control" ng-options="unit.id as unit.showname for unit in unitList" ng-model="dataInfo.fk_unit" ng-change="findGrade()">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">年级：</label>
            <select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.fk_grade" ng-change="findClass()">
                <option value="">==请选择==</option>
            </select>
            <label class="form-label">班级：</label>
            <select class="form-control" ng-options="class.id as class.name for class in classList" ng-model="form.fk_class" ng-change="findCourse()">
                <option value="">==请选择==</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">课程：</label>
            <select class="form-control" ng-options="course.id as course.name for course in courseList" ng-model="form.fk_course" ng-change="select()">
                <option value="">==请选择==</option>
            </select>
        </div>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr >
                <th class="table-th-checkbox"  >
                    <input type="checkbox" ng-click="checkAll($event.target)" />
                </th>
                <th column="grade_sort" class="sorting" ng-click="order($event.target)">年级</th>
                <th column="class_sort" class="sorting" ng-click="order($event.target)">班级</th>
                <th column="course_name" class="sorting" ng-click="order($event.target)">课程名称</th>
                <th column="teacher_name" class="sorting" ng-click="order($event.target)">任课教师</th>
            </tr>
            </thead>

            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox"   name="dataPk"   value="{{row.id}}" />
                </td>
                <td>{{row.grade_name}}</td>
                <td>{{row.class_name}}</td>
                <td>{{row.course_name}}</td>
                <td>{{row.teacher_name}}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>